package com.sikaryofficial.backend.domain.mapping;

import com.sikaryofficial.backend.domain.dto.req.brandspecial.BrandSpecialReq;
import com.sikaryofficial.backend.domain.dto.resp.brandspecial.BrandSpecialDTO;
import com.sikaryofficial.backend.domain.entity.BrandSpecial;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author : qinjinyuan
 * @desc : 品牌专栏实体映射
 * @date : 2023/11/03 9:19
 */
@Mapper
public interface BrandSpecialMapping {
    BrandSpecialMapping INSTANCE = Mappers.getMapper(BrandSpecialMapping.class);
    /**
     * 实体映射resp
     *
     * @param req
     * @return
     */
    BrandSpecial coverReqToEntity(BrandSpecialReq req);

    BrandSpecialDTO coverToDTO(BrandSpecial req);

    List<BrandSpecialDTO> coverToDTOList( List<BrandSpecial> req);
}
